﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XT.Model;

namespace XT.BusinessService
{
    public interface IAccountService 
    {
        Account getAccountById(int id);
        int AddAccount(Account accountNeedSave);
        Account checkLogin(string mail, string password);
        int checkExistEmail(string mail);
        int checkExistUsername(string username);
        Account searchAccountByName(string txt);
        Account updateAccount(int Id,Account account);
    }
}
